set(TARGET_NAME "HttpServer")

set(CMAKE_AUTOMOC ON)

add_definitions("-DDECLSPEC=__declspec(dllexport)")

#set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)

aux_source_directory(${CMAKE_CURRENT_LIST_DIR} SRC_CPP)

file(GLOB H_HEAD "${CMAKE_CURRENT_LIST_DIR}/*.h" )


set(BUILD_SHARED_LIBS ON)


#INCLUDE_DIRECTORIES(${Qt5Network_INCLUDE_DIRS})

add_library(${TARGET_NAME} ${SRC_CPP} ${H_HEAD})

#target_compile_definitions(${PROJECT_NAME} PRIVATE "-DDECLSPEC=__declspec(dllexport)")

target_link_libraries(${TARGET_NAME}
                        Qt5::Core
                        Qt5::Network
                        Qt5::Widgets
                        )

target_include_directories(${TARGET_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR})